package com.scott.configuration.child;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * @author 黄后林  只扫描com.scott包及其子包下带有@Controller注解的类[其他的都不管] 把这个交给Spring MVC容器
 * @date 2021-11-22 11:32:22
 * @Version 1.0
 */

@EnableWebMvc
@ComponentScan(value="com.scott",useDefaultFilters=false,includeFilters={
        @ComponentScan.Filter(type=FilterType.ANNOTATION,classes= Controller.class)
})
public class SpringMVCConfiguration {
}
